# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-panel
pkgver=4.14.4
pkgrel=1
pkgdesc="Panel for the Xfce desktop environment"
url="https://xfce.org/"
arch="all"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
depends="hicolor-icon-theme"
depends_dev="xfconf-dev"
# NOTE: vala has been disabled due to FTBFS with vala 0.48
makedepends="$depends_dev libxfce4ui-dev exo-dev garcon-dev libwnck3-dev
	gobject-introspection-dev gtk+2.0-dev gtk+3.0-dev libxfce4util-dev"
source="https://archive.xfce.org/src/xfce/xfce4-panel/${pkgver%.*}/xfce4-panel-$pkgver.tar.bz2
	gir-gio.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib \
		--localstatedir=/var \
		--disable-static \
		--enable-introspection
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="5ae7c7acf0254fdc3f5eaccf75d7c12699ab8147322f231af7bd17b1238b8c25a96d628dada9caa086fc8fde2b7dc4030a38eb7b863b290f9e069193b3728d85  xfce4-panel-4.14.4.tar.bz2
d4d6b985b148417e72339c3a5b642345d9d6193ac2524954a645c59c3c286db50408b0877857785138a328b26f40807b2d26f2e98c8379feefeec7fc525bc8db  gir-gio.patch"
